import { Controller, Get, Query } from '@nestjs/common';
import { TableService } from './table.service';

@Controller('table')
export class TableController {
  constructor(private readonly tableService: TableService) {}
  @Get('/list')
  getTableList(@Query('page') page: number, @Query('limit') limit: number) {
    return this.tableService.getTable(page, limit);
  }
}
